
<%@ page import="rentadomus.Place" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'place.label', default: 'Place')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-place" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-place" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list place">
			
				<g:if test="${placeInstance?.date}">
				<li class="fieldcontain">
					<span id="date-label" class="property-label"><g:message code="place.date.label" default="Date" /></span>
					
						<span class="property-value" aria-labelledby="date-label"><g:formatDate date="${placeInstance?.date}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.titlePlace}">
				<li class="fieldcontain">
					<span id="titlePlace-label" class="property-label"><g:message code="place.titlePlace.label" default="Title Place" /></span>
					
						<span class="property-value" aria-labelledby="titlePlace-label"><g:fieldValue bean="${placeInstance}" field="titlePlace"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.mainImage}">
				<li class="fieldcontain">
					<span id="mainImage-label" class="property-label"><g:message code="place.mainImage.label" default="Main Image" /></span>
					
						<span class="property-value" aria-labelledby="mainImage-label"><g:fieldValue bean="${placeInstance}" field="mainImage"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.strata}">
				<li class="fieldcontain">
					<span id="strata-label" class="property-label"><g:message code="place.strata.label" default="Strata" /></span>
					
						<span class="property-value" aria-labelledby="strata-label"><g:fieldValue bean="${placeInstance}" field="strata"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.address}">
				<li class="fieldcontain">
					<span id="address-label" class="property-label"><g:message code="place.address.label" default="Address" /></span>
					
						<span class="property-value" aria-labelledby="address-label"><g:fieldValue bean="${placeInstance}" field="address"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.rentPrice}">
				<li class="fieldcontain">
					<span id="rentPrice-label" class="property-label"><g:message code="place.rentPrice.label" default="Rent Price" /></span>
					
						<span class="property-value" aria-labelledby="rentPrice-label"><g:fieldValue bean="${placeInstance}" field="rentPrice"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.area}">
				<li class="fieldcontain">
					<span id="area-label" class="property-label"><g:message code="place.area.label" default="Area" /></span>
					
						<span class="property-value" aria-labelledby="area-label"><g:fieldValue bean="${placeInstance}" field="area"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.neighborhood}">
				<li class="fieldcontain">
					<span id="neighborhood-label" class="property-label"><g:message code="place.neighborhood.label" default="Neighborhood" /></span>
					
						<span class="property-value" aria-labelledby="neighborhood-label"><g:fieldValue bean="${placeInstance}" field="neighborhood"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.description}">
				<li class="fieldcontain">
					<span id="description-label" class="property-label"><g:message code="place.description.label" default="Description" /></span>
					
						<span class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${placeInstance}" field="description"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.cableTv}">
				<li class="fieldcontain">
					<span id="cableTv-label" class="property-label"><g:message code="place.cableTv.label" default="Cable Tv" /></span>
					
						<span class="property-value" aria-labelledby="cableTv-label"><g:formatBoolean boolean="${placeInstance?.cableTv}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.energy}">
				<li class="fieldcontain">
					<span id="energy-label" class="property-label"><g:message code="place.energy.label" default="Energy" /></span>
					
						<span class="property-value" aria-labelledby="energy-label"><g:formatBoolean boolean="${placeInstance?.energy}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.gas}">
				<li class="fieldcontain">
					<span id="gas-label" class="property-label"><g:message code="place.gas.label" default="Gas" /></span>
					
						<span class="property-value" aria-labelledby="gas-label"><g:formatBoolean boolean="${placeInstance?.gas}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.idPerson}">
				<li class="fieldcontain">
					<span id="idPerson-label" class="property-label"><g:message code="place.idPerson.label" default="Id Person" /></span>
					
						<span class="property-value" aria-labelledby="idPerson-label"><g:link controller="person" action="show" id="${placeInstance?.idPerson?.id}">${placeInstance?.idPerson?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.img}">
				<li class="fieldcontain">
					<span id="img-label" class="property-label"><g:message code="place.img.label" default="Img" /></span>
					
						<g:each in="${placeInstance.img}" var="i">
						<span class="property-value" aria-labelledby="img-label"><g:link controller="images" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.phone}">
				<li class="fieldcontain">
					<span id="phone-label" class="property-label"><g:message code="place.phone.label" default="Phone" /></span>
					
						<span class="property-value" aria-labelledby="phone-label"><g:formatBoolean boolean="${placeInstance?.phone}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.water}">
				<li class="fieldcontain">
					<span id="water-label" class="property-label"><g:message code="place.water.label" default="Water" /></span>
					
						<span class="property-value" aria-labelledby="water-label"><g:formatBoolean boolean="${placeInstance?.water}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${placeInstance?.wifi}">
				<li class="fieldcontain">
					<span id="wifi-label" class="property-label"><g:message code="place.wifi.label" default="Wifi" /></span>
					
						<span class="property-value" aria-labelledby="wifi-label"><g:formatBoolean boolean="${placeInstance?.wifi}" /></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${placeInstance?.id}" />
					<g:link class="edit" action="edit" id="${placeInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
